package com.springmq.mq.annoation;

import com.springmq.mq.api.MqEntry;
import lombok.Data;
import lombok.extern.slf4j.Slf4j;

import java.awt.*;

/**
 * @ClassName : TestReflex
 * @Author : lby
 * @Date: 2021/2/2 10:27
 * @Description : 测试Java反射机制
 */
@Slf4j
public class TestReflex {
    public static void main(String[] args) throws ClassNotFoundException {
        sysUser mqEntry = new sysUser();
        long l = System.currentTimeMillis();
        for (int i = 0; i <1000000000 ; i++) {
            mqEntry.getName();
        }
        long l1 = System.currentTimeMillis();
        log.info("时间:{}",l1-l);

    }
}
@Data
class sysUser{
    private String name;
}